public class Test2 {
    public static void main(String[] args) {
        Child1 child1 = new Child1();
        Child2 child2 = new Child2();
        child1.setA(1);
        child2.setA(2);
        child1.print();
        child2.print();
    }
}
